home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _IETableWriteToArray.au3 < prev    next >
Text File  |  2007-09-08  |  850b  |  21 lines

  1. ; *******************************************************
  2. ; Example 1 - Open a browser with the table example, get a reference to the second table
  3. ;                on the page (index 1) and read its contents into a 2-D array
  4. ; *******************************************************
  5. ;
  6. #include <IE.au3>
  7. $oIE = _IE_Example ("table")
  8. $oTable = _IETableGetCollection ($oIE, 1)
  9. $aTableData = _IETableWriteToArray ($oTable)
  10.  
  11. ; *******************************************************
  12. ; Example 2 - Same as Example 1, except transpose the output array and display
  13. ;                the results with _ArrayDisplay()
  14. ; *******************************************************
  15. ;
  16. #include <IE.au3>
  17. #include <Array.au3>
  18. $oIE = _IE_Example ("table")
  19. $oTable = _IETableGetCollection ($oIE, 1)
  20. $aTableData = _IETableWriteToArray ($oTable, True)
  21. _ArrayDisplay($aTableData)